package com.lwh.service.impl;

import com.lwh.dao.LogMapper;
import com.lwh.entity.Log;
import com.lwh.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    @Override
    public void save(Log log) {
        log.setTime(new Date()); // 设置操作日期

        logMapper.save(log);
    }
}
